home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / lists / split < prev    next >
Encoding:
Text File  |  1993-10-26  |  967 b   |  27 lines  |  [TEXT/$Tcl]

  1.  
  2.           split string ?splitChars?
  3.  
  4.  
  5.      DESCRIPTION
  6.           Returns a list created by splitting string at each character
  7.           that  is  in  the  splitChars argument.  Each element of the
  8.           result list will consist of the characters from string  that
  9.           lie  between  instances  of  the  characters  in splitChars.
  10.           Empty list elements will be  generated  if  string  contains
  11.           adjacent  characters  in splitChars, or if the first or last
  12.           character of string is in splitChars.  If splitChars  is  an
  13.           empty  string  then  each  character  of  string  becomes  a
  14.           separate element of the result list.  SplitChars defaults to
  15.           the standard white-space characters.  For example,
  16.  
  17.                split "comp.unix.misc" .
  18.  
  19.           returns "comp unix misc" and
  20.  
  21.                split "Hello world" {}
  22.           returns "H e l l o { } w o r l d".
  23.  
  24.  
  25.      KEYWORDS
  26.           list, split, string
  27.